/* 
 * UrlyBirdDataFactoryImpl.java 01.08.2011
 *  
 *  
 * Candidate: Alessandra Otterbach
 * Prometric ID: Algisina1
 * Username: Algisina
 *  
 * Sun Certified Developer for Java 2 Platform, Standard Edition Programming 
 * Assignment (CX-310-252A)
 *  
 * This class is part of the Programming Assignment of the Sun Certified 
 * Developer for Java 2 Platform, Standard Edition certification program, must 
 * not be used out of this context and must be used exclusively by Sun 
 * Microsystems, Inc. 
 */
package suncertify.rm;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * @author Alessandra Otterbach
 * 
 */
public class UrlyBirdDataFactoryImpl extends UnicastRemoteObject implements
	UrlyBirdDataFactory {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    
    /** Location of the database file */
    private static String path = null;

    /**
     * 
     */
    public UrlyBirdDataFactoryImpl(String path) throws RemoteException {
	UrlyBirdDataFactoryImpl.path = path;
    }

    /*
     * (non-Javadoc)
     * 
     * @see suncertify.rm.UrlyBirdDataFactory#getUBData()
     */
    @Override
    public UrlyBirdDataRemote getUBData() throws RemoteException {
	return new UrlyBirdDataImpl(path);
    }
}
